package designs.models.status.example.one;

public class Gun {
	State state3,state2,state1,state0;
	State state;
	public Gun() {
		state3 = new BulletState3(this);
		state2 = new BulletState2(this);
		state1 = new BulletState1(this);
		state0 = new BulletState0(this);
		state = state3;
	}
	public void fire() {
		state.fire();
	}
	public void loadBullet() {
		state.loadBullet();
	}
	public State getBulletState3() {
		return state3;
	}
	public State getBulletState2() {
		return state2;
	}
	public State getBulletState1() {
		return state1;
	}
	public State getBulletState0() {
		return state0;
	}
	public void setState(State state) {
		this.state = state;
	}
	
}
